<template>
  <div class="container">
    <div class="captioncon betweenbox">
      <div class="centerbox">
        <span class="iconfont iconbaogao cpationicon"></span>
        <span>在线监测</span>
      </div>
      <div class="return" @click="goBack"></div>
    </div>
    <div class="formcon">
      <myform />
    </div>
    <div class="tablecon">
      <mytable />
    </div>
    <div class="pagcon">
      <mypagination />
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import mytable from "./Table.vue";
import mypagination from "./Pagination.vue";
import myform from "./Form.vue";

@Component({ components: { mytable, mypagination, myform } })
export default class extends Vue {
  //返回按钮
  goBack() {
    this.$router.go(-1);
  }
}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100%;
  padding: 0 0.2rem 0.2rem;
  .captioncon {
    width: 100%;
    height: 0.5rem;
    align-items: center;
    align-content: center;
    font-size: 0.2rem;
    .cpationicon {
      font-size: 0.2rem;
      margin-right: 0.04rem;
    }
    .return {
      width: 0.9rem;
      height: 0.3rem;
      background: url(../../../assets/img/return.png) no-repeat;
      background-size: 100% 100%;
      cursor: pointer;
    }
  }
  .formcon {
    width: 100%;
    height: 1.2rem;
  }
  .tablecon {
    width: 100%;
    height: calc(100% - 0.5rem - 1.2rem - 0.4rem);
  }
  .pagcon {
    width: 100%;
    height: 0.4rem;
  }
}
</style>

